/* Basic Reset */
body,
html {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  direction: rtl;
}

/* Header */
header {
  background: #262626;
  padding: 10px 0;
  color: white;
}

nav {
  display: flex;
  justify-content: space-between; /* Align items to the sides */
  align-items: center;
}

.navbar-images {
  display: flex;
  align-items: center;
}

.profile-image {
  width: 40px;
  height: 40px;
  background-color: #262626;
  margin-left: 10px;
  border-radius: 50%;
}
.logo-image {
  width: 100px; /* Adjust the size as needed */
  height: 40px; /* Adjust the size as needed */
  background-color: #262626; /* Placeholder for the images */
  margin-left: 10px; /* Space between the images */
}

nav ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* Introduction Section */
.intro {
  background: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
}

.intro h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: #333;
}

.intro p {
  font-size: 1.2em;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

.skills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0;
}

.skills img {
  /* background-color: #b74a4a; */
  width: 60px;
  height: 60px;
  border-radius: 10%;
}

/* About Section */
.about {
  text-align: center;
  padding: 60px 20px;
  background: #262626;
  color: white;
}

.about .profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.about h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.about p {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  color: #ccc;
}

.about .btn {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 20px;
  background: #666;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

/* Projects Section */
.projects {
  padding: 60px 20px;
  text-align: center;
  background: #f9f9f9;
}

.projects h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

.projects p {
  max-width: 800px;
  margin: 0 auto;
  color: #666;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.project-card {
  width: 300px;
  background: white;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column; /* Make the card a flex container with vertical layout */
  justify-content: space-between; /* Distribute space between items */
}

.project-card img {
  width: 100%;
  border-radius: 5px 5px 0 0;
}

.project-card h3 {
  font-size: 1.5em;
  margin: 20px 0 10px;
}

.project-card p {
  font-size: 1em;
  color: #666;
  padding: 0 20px;
  margin-bottom: 10px;
}

.project-icons {
  font-size: 1.2em;
  margin: 10px 0;
}

.project-icons span {
  margin: 0 5px;
}

.project-card .btn {
  display: inline-block;
  margin: 20px 0;
  padding: 10px 20px;
  background: #1ae0ec 0% 0% no-repeat padding-box;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  align-self: center; /* Center the button horizontally */
}
.java-projects {
  padding: 60px 20px;
  text-align: center;
  background: #f0f0f0; /* Light background color to make it stand out */
  border: 2px solid #1ae0ec; /* Add a border to highlight the section */
  border-radius: 10px; /* Rounded corners for a modern look */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for a 3D effect */
  margin: 40px 0;
}

.java-projects h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #333;
  font-weight: bold;
}

.java-projects p {
  font-size: 1.2em;
  color: #666;
  max-width: 800px;
  margin: 0 auto 40px;
}

.java-projects-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.java-projects-cards .project-card {
  width: 300px;
  background: white;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column; /* Make the card a flex container with vertical layout */
  justify-content: space-between; /* Distribute space between items */
}

.java-projects-cards .project-card img {
  width: 100%;
  border-radius: 5px 5px 0 0;
}

.java-projects-cards .project-card h3 {
  font-size: 1.5em;
  margin: 20px 0 10px;
}

.java-projects-cards .project-card p {
  font-size: 1em;
  color: #666;
  padding: 0 20px;
  margin-bottom: 10px;
}

.java-projects-cards .project-icons {
  font-size: 1.2em;
  margin: 10px 0;
}

.java-projects-cards .project-icons span {
  margin: 0 5px;
}

.java-projects-cards .project-card .btn {
  display: inline-block;
  margin: 20px 0;
  padding: 10px 20px;
  background: #1ae0ec;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  align-self: center; /* Center the button horizontally */
}

@media (max-width: 768px) {
  .java-projects-cards {
    flex-direction: column; /* Stack elements vertically on small screens */
    gap: 20px;
  }
}
/* General hover effect for project cards */
.project-card:hover,
.java-projects-cards .project-card:hover {
  background: #e0e0e0; /* Light gray background on hover */
  transform: translateY(-5px); /* Slight lift effect */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
  transition: all 0.3s ease; /* Smooth transition effect */
}

/* Hover effect specifically for .project-card */
.project-card img,
.java-projects-cards .project-card img {
  transition: transform 0.3s ease; /* Smooth transition for image zoom */
}

.project-card:hover img,
.java-projects-cards .project-card:hover img {
  transform: scale(1.05); /* Slight zoom effect on image */
}

/* Optional: Add hover effect to buttons if needed */
.project-card .btn:hover,
.java-projects-cards .project-card .btn:hover {
  background: #15b2d6; /* Darker blue for hover effect */
}

/* Contact Section */
.contact-section {
  background: #333;
  padding: 60px 20px;
  color: white;
  text-align: center;
}

.contact-container {
  display: flex;
  flex-direction: row-reverse; /* Reverse the direction to place form on the right */
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-image {
  margin-top: -330px; /* Adjust the margin to move the image up/down */
  margin-left: 100px; /* Adjust the margin to move the image left/right */
}

.contact-image img {
  width: 300px;
  max-width: 100%;
  border-radius: 10px;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
}

.contact-form {
  max-width: 500px;
  width: 100%;
  text-align: left; /* Align text to the left for better readability */
}

.contact-form h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.contact-form p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.2em;
  color: #ccc;
}

.contact-form form input,
.contact-form form textarea {
  width: calc(100% - 20px); /* Adjust width to fit better */
  padding: 10px;
  margin-bottom: 20px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  /* display: grid; */
}

.contact-form form input::placeholder {
  color: #999;
  /* display: grid; */
  /* direction: rtl; */
}
.contact-form form textarea::placeholder {
  color: #999;
  font-size: 16px;
  /* display: grid; */
  /* direction: rtl; */
}

.contact-form form textarea {
  height: 100px;
  resize: none;
}

.contact-form form button {
  padding: 10px 20px;
  background: #494d52;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  /* flex: auto; */
  /* direction: rtl; */
  display: grid;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column; /* Stack elements vertically on small screens */
    gap: 20px;
  }
}

/* Footer */
footer {
  background: #1a1a1a;
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-container .contact-details {
  text-align: right;
}

.footer-container .contact-details p {
  margin: 0 0 10px;
}

.footer-container .social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-container .social-icons a {
  margin: 0 10px;
}

.footer-container .social-icons img {
  width: 30px;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 0.9em;
}
